package validates

import (
	"github.com/gin-gonic/gin/binding"
	"github.com/go-playground/validator/v10"
	"log"
)

var (
	V *validator.Validate
)

func init() {
	var (
		ok bool
	)
	V, ok = binding.Validator.Engine().(*validator.Validate)
	if !ok {
		log.Fatal("init package validate failed")
	} else {
		log.Println("init package validate failed success")
	}
}
